package ru.spbu.math.seabattle.client.messages;

import java.io.Serializable;

import ru.spbu.math.seabattle.entity.PlayerID;

public class OnPlayerJoinedMessage implements Serializable {

	private static final long serialVersionUID = 1L;

	private final PlayerID 	id;
	private final String 	name;
	
	public OnPlayerJoinedMessage(PlayerID id, String name) {
	
		this.id = id;
		this.name = name;
	}
	
	public PlayerID getPlayerId() {
		return id;
	}
	
	public String getPlayerName() {
		return name;
	}
}
